package edu.pku.sei.transformation.tgg.adapter;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

import edu.pku.sei.transformation.tgg.rule.IEdge;
import edu.pku.sei.transformation.tgg.rule.INode;
import edu.pku.sei.transformation.tgg.rule.IPattern;

public class PatternAdapter implements IPattern {
	List<IEdge> edges = new ArrayList<IEdge>();
	List<INode> nodes = new ArrayList<INode>();
	String id;

	public PatternAdapter() {
		Calendar c = Calendar.getInstance();
		id = String.valueOf(c.getTimeInMillis());
	}

	@Override
	public List<IEdge> getEdges() {
		return edges;
	}

	@Override
	public List<INode> getNodes() {
		return nodes;
	}

	@Override
	public String getID() {
		return id;
	}

}
